package com.cn.wanxi.dao.impl;

import com.cn.wanxi.dao.NewsDao;
import com.cn.wanxi.model.NewsModel;
import com.cn.wanxi.util.GetSqlSession;

import java.util.List;

public class NewsImpl implements NewsDao {
    @Override
    public List<NewsModel> getNewsListForHome() {
        return GetSqlSession.getSqlSession().selectList("com.cn.wanxi.dao.NewsDao.getNewsListForHome");
    }
}
